<?php
/*
	创建活动

*/
defined('BY_JYA') or exit('error');
list($goods_id)=$arguments;
$goods=$this->get('goods',array('id'=>$goods_id,'uniacid'=>$_SESSION['uniacid']),array('id','active_plugin'));
if(!$goods){
		exi('指定商品不存在！','error');
}
if($goods['active_plugin'] && $goods['active_plugin']!='jy_friends_shop'){
	return true;
}
$get_sales=$this->get_sales($goods_id,true);
if($get_sales['title']){
	return true;
}
return false;
